package com.qfjy.wangyigui;

/**
 * @Author: WYG
 * @Date: 2022/9/13 $ {TIME}
 * @Version 1.0
 */

/**
 * 遥控器
 */
public class RemoteControl {
    Command command = null;

    public RemoteControl(Command command) {
        this.command = command;
    }

    public void onButton(){
        command.open();
    }
    public void offButton(){
        command.close();
    }
}
